// 商品数据结构
const products = {
    '热卖': [
        {name: '爆款手机', price: 2599, desc: '年度销量冠军'},
        {name: '热销平板', price: 3299, desc: '教育优惠套装'},
        {name: '智能手表', price: 899, desc: '运动健康监测'},
        {name: '无线耳机', price: 499, desc: '主动降噪技术'}
    ],
    
    '手机': [
        {name: '智能手机X', price: 2999, desc: '6.5英寸全面屏'},
        {name: '旗舰手机Y', price: 4999, desc: '1亿像素相机'},
        {name: '折叠屏手机Z', price: 8999, desc: '柔性OLED屏幕'},
        {name: '入门手机A', price: 1999, desc: '长续航设计'}
    ],
    '平板': [
      { name: '华为MatePad', price: 2999, description: '11英寸2K全面屏 鸿蒙OS' },
      { name: 'iPad Air', price: 4799, description: 'M1芯片 10.9英寸 Liquid视网膜屏' },
      { name: '小米平板6', price: 1999, description: '2.8K超清屏 骁龙870' },
      { name: '三星Galaxy Tab', price: 3699, description: '12.4英寸大屏 S Pen手写笔' }
    ],
    '智能设备': [
      { name: 'Apple Watch', price: 2999, description: '智能手表 心率监测' },
      { name: '小米手环7', price: 249, description: '1.62英寸AMOLED屏' },
      { name: '华为智能音箱', price: 399, description: 'AI语音助手 智能家居控制' },
      { name: '大疆无人机', price: 4999, description: '4K高清航拍 智能避障' }
    ],
    '电脑': [
      {name: '游戏本', price: 8999, desc: 'RTX3080显卡'},
      {name: '超极本', price: 6999, desc: '1kg超轻薄'},
      {name: '工作站', price: 12999, desc: '至强处理器'},
      {name: '二合一平板', price: 4999, desc: '触控屏幕'}
    ],
    '零食': [
      {name: '薯片礼包', price: 15, desc: '混合口味'},
      {name: '坚果组合', price: 30, desc: '健康零食'},
      {name: '巧克力礼盒', price: 99, desc: '进口原料'},
      {name: '牛肉干', price: 45, desc: '内蒙古风味'}
    ],
    '饮料': [
      {name: '碳酸饮料', price: 5, desc: '多种口味'},
      {name: '功能饮料', price: 8, desc: '提神醒脑'},
      {name: '果汁饮料', price: 6, desc: '鲜榨工艺'},
      {name: '矿泉水', price: 3, desc: '天然水源'}
    ],
    '家具': [
      {name: '实木餐桌', price: 2999, desc: '北欧风格'},
      {name: '布艺沙发', price: 4999, desc: '可拆洗设计'},
      {name: '书柜组合', price: 1999, desc: '多层分区'},
      {name: '电视柜', price: 1599, desc: '现代简约'}
    ],
    '家纺': [
      {name: '蚕丝被', price: 899, desc: '四季通用'},
      {name: '记忆枕', price: 199, desc: '护颈设计'},
      {name: '纯棉四件套', price: 399, desc: '活性印染'},
      {name: '乳胶床垫', price: 2999, desc: '七区支撑'}
    ],
    '男装': [
      {name: '衬衫', price: 199, desc: '纯棉材质 透气舒适'},
      {name: '大衣', price: 299, desc: '雪纺面料 修身剪裁'},
      {name: '休闲裤', price: 159, desc: '弹力腰头 多色可选'},
      {name: '羊毛大衣', price: 599, desc: '双面呢面料 保暖有型'}
    ],
    '女装': [
      {name: '连衣裙', price: 299, desc: '经典版型 舒适穿着'},
      {name: '半身裙', price: 249, desc: '经典版型 时尚舒适'},
    ],
    '童装': [
      {name: '儿童卫衣套装', price: 159, desc: '纯棉材质 3-6岁'},
      {name: '婴儿连体衣', price: 89, desc: 'A类标准 0-1岁'},
      {name: '儿童运动鞋', price: 199, desc: '防滑鞋底 透气网面'},
      {name: '儿童防晒衣', price: 129, desc: 'UPF50+ 4-8岁'},
      {name: '婴儿爬服', price: 79, desc: '纯棉吸汗 新生儿'},
      {name: '儿童牛仔裤', price: 109, desc: '弹性腰头 5-10岁'},
      {name: '儿童羽绒服', price: 399, desc: '90%白鸭绒 冬季保暖'},
      {name: '婴儿礼盒装', price: 259, desc: '新生儿礼物套装'},
      {name: '儿童运动套装', price: 189, desc: '速干面料 7-12岁'},
      {name: '婴儿睡袋', price: 149, desc: '恒温设计 0-2岁'}
    ],
    '运动服': [
      {name: '速干运动T恤', price: 129, desc: '透气排汗 男女同款'},
      {name: '健身压缩裤', price: 199, desc: '高弹力 肌肉支撑'},
      {name: '瑜伽服套装', price: 299, desc: '四面弹力 高腰设计'},
      {name: '篮球运动短裤', price: 159, desc: '速干面料 透气网眼'},
      {name: '羽毛球训练服', price: 189, desc: '吸湿排汗 专业运动'},
      {name: '跑步紧身衣', price: 219, desc: '梯度压缩 减少震动'},
      {name: '登山冲锋衣', price: 499, desc: '防风防水 专业户外'},
      {name: '骑行服套装', price: 359, desc: '空气动力学设计'},
      {name: '网球连衣裙', price: 279, desc: '速干透气 时尚造型'},
      {name: '滑雪服套装', price: 899, desc: '保暖防水 专业滑雪'}
    ],
    '计算机': [
        {name: 'JavaScript高级编程', price: 99, desc: '前端开发必读经典'},
        {name: '算法导论', price: 129, desc: '计算机算法权威指南'},
        {name: '设计模式', price: 89, desc: '软件开发最佳实践'},
        {name: '人工智能基础', price: 109, desc: 'AI入门必备教材'},
        {name: 'Python编程从入门到实践', price: 89, desc: '实战案例教学'},
        {name: 'React开发实战', price: 109, desc: '构建现代Web应用'},
        {name: '数据结构与算法', price: 79, desc: '考研必备教材'},
        {name: '计算机网络', price: 119, desc: '自顶向下方法'}
    ],
    '科技': [
      {name: '智能显微镜', price: 599, desc: '1000倍放大 手机连接'},
      {name: '编程机器人', price: 799, desc: '图形化编程 STEM教育'},
      {name: '3D打印笔', price: 299, desc: '低温耗材 安全设计'},
      {name: '天文望远镜', price: 1299, desc: '专业级 自动寻星'},
      {name: '无人机套装', price: 1599, desc: '4K摄像 智能避障'},
      {name: '化学实验箱', price: 399, desc: '30个安全实验'},
      {name: '虚拟现实眼镜', price: 499, desc: '手机VR 全景体验'},
      {name: '电子积木', price: 199, desc: '电路学习 200+组合'},
      {name: '显微镜相机', price: 359, desc: '手机适配 400万像素'},
      {name: '机器人开发板', price: 159, desc: 'Arduino兼容 物联网'}
    ],
    '教育': [
      {name: '英语点读笔', price: 499, desc: '小学教材同步'},
      {name: '智能单词卡', price: 199, desc: '艾宾浩斯记忆法'},
      {name: '数学教具箱', price: 159, desc: '几何模型 数形结合'},
      {name: '编程启蒙套装', price: 299, desc: '5-8岁逻辑训练'},
      {name: '国学启蒙点读本', price: 129, desc: '唐诗三百首'},
      {name: '科学实验套装', price: 89, desc: '20个趣味实验'},
      {name: '思维训练机', price: 359, desc: '2000+逻辑题目'},
      {name: '电子书法帖', price: 199, desc: '多种字体临摹'},
      {name: '儿童地球仪', price: 159, desc: 'AR互动 地理知识'},
      {name: '编程学习卡', price: 79, desc: 'Scratch基础教程'}
    ],
    '儿童读物': [
      {name: '幼儿认知百科', price: 89, desc: '0-3岁启蒙认知'},
      {name: '经典童话全集', price: 129, desc: '注音版 彩色插图'},
      {name: '十万个为什么', price: 99, desc: '新版科技分册'},
      {name: '成语故事大全', price: 69, desc: '彩图注音版'},
      {name: '恐龙世界探秘', price: 79, desc: '3D立体书'},
      {name: '儿童安全手册', price: 49, desc: '情景式漫画'},
      {name: '世界地理绘本', price: 109, desc: '国家地理合作'},
      {name: '数学王国历险', price: 89, desc: '趣味数学故事'},
      {name: '幼儿英语绘本', price: 129, desc: '点读版 牛津树'},
      {name: '儿童情绪管理', price: 59, desc: '心理成长故事'}
    ],
    '彩妆': [
      {name: '丝绒唇膏', price: 199, desc: '哑光质地 持久显色'},
      {name: '眼影盘', price: 299, desc: '12色可选 细腻粉质'},
      {name: '粉底液', price: 399, desc: '自然遮瑕 持妆24小时'},
      {name: '睫毛膏', price: 159, desc: '防水防晕 纤长卷翘'}
  ],
  
  // 新增分类商品数据
  '护肤品': [
    {name: '氨基酸洁面乳', price: 89, desc: '温和清洁 敏感肌适用'},
    {name: '玻尿酸精华', price: 199, desc: '深层保湿 修护屏障'},
    {name: '烟酰胺面霜', price: 159, desc: '提亮肤色 改善暗沉'},
    {name: '防晒隔离乳', price: 129, desc: 'SPF50+ PA++++'},
    {name: '冻干面膜', price: 299, desc: '活性成分 密集修护'},
    {name: '眼部精华', price: 259, desc: '淡化黑眼圈 抗皱紧致'}
  ],
  '个护工具': [
    {name: '电动剃须刀', price: 399, desc: '三刀头浮动 干湿两用'},
    {name: '鼻毛修剪器', price: 79, desc: '360°旋转刀头'},
    {name: '美容仪', price: 599, desc: '射频导入 提拉紧致'},
    {name: '卷发棒', price: 199, desc: '负离子护发 多档温控'},
    {name: '电动牙刷', price: 299, desc: '声波震动 智能定时'},
    {name: '理发器套装', price: 159, desc: '家用理发 多长度配件'}
  ],
  '香水': [
    {name: '海洋调男士香水', price: 499, desc: '清新活力 持久留香'},
    {name: '玫瑰女士淡香', price: 599, desc: '优雅花香 前中后调'},
    {name: '古龙水套装', price: 399, desc: '经典香型 50ml'},
    {name: '车载香薰', price: 89, desc: '天然精油 替换装'},
    {name: '固体香膏', price: 129, desc: '便携补香 木质香调'},
    {name: '香水分装瓶', price: 59, desc: '真空按压 随身携带'}
  ],
  '健身器材': [
    {name: '智能跑步机', price: 2999, desc: '折叠设计 心率监测'},
    {name: '可调节哑铃', price: 599, desc: '5-25kg快速调节'},
    {name: '瑜伽垫套装', price: 159, desc: '加厚防滑 初学者适用'},
    {name: '腹肌轮', price: 89, desc: '双轮设计 跪姿训练'},
    {name: '拉力绳组合', price: 199, desc: '5种阻力可选'},
    {name: '拳击速度球', price: 259, desc: '反应训练 家用悬挂式'}
  ],
  '露营装备': [
    {name: '自动帐篷', price: 599, desc: '3秒速开 防雨涂层'},
    {name: '睡袋', price: 299, desc: '-10℃温标 鹅绒填充'},
    {name: '折叠桌椅套装', price: 399, desc: '铝合金材质 便携'},
    {name: '户外炊具', price: 199, desc: '4件套 防风炉头'},
    {name: '头灯', price: 129, desc: 'USB充电 3档亮度'},
    {name: '多功能工兵铲', price: 159, desc: '折叠设计 十合一功能'}
  ],
  '运动鞋服': [
    {name: '气垫跑鞋', price: 599, desc: '缓震回弹 透气网面'},
    {name: '速干衣套装', price: 299, desc: '男女同款 多色可选'},
    {name: '篮球袜', price: 59, desc: '毛巾底 高筒设计'},
    {name: '运动护膝', price: 89, desc: '加压支撑 防滑硅胶'},
    {name: '登山鞋', price: 499, desc: 'Vibram大底 防水'},
    {name: '运动发带', price: 39, desc: '吸汗速干 弹性面料'}
  ],
  '骑行装备': [
    {name: '公路自行车', price: 2999, desc: '21速 铝合金车架'},
    {name: '骑行头盔', price: 399, desc: 'MIPS系统 透气孔'},
    {name: '车灯套装', price: 159, desc: '前灯尾灯 USB充电'},
    {name: '骑行手套', price: 129, desc: '减震硅胶 触屏功能'},
    {name: '码表', price: 199, desc: 'GPS定位 防水设计'},
    {name: '水壶架', price: 49, desc: '铝合金 快拆式'}
  ],
  '厨房电器': [
    {name: '破壁机', price: 599, desc: '真空萃取 自动清洗'},
    {name: '空气炸锅', price: 399, desc: '5.5L容量 智能控温'},
    {name: '电压力锅', price: 499, desc: 'IH加热 双胆配置'},
    {name: '面包机', price: 299, desc: '19种菜单 双管烘烤'},
    {name: '洗碗机', price: 3999, desc: '8套容量 热风烘干'},
    {name: '厨余处理器', price: 1999, desc: '静音研磨 无线开关'}
  ],
  '生活电器': [
    {name: '除湿机', price: 999, desc: '日除湿30L 适用50㎡'},
    {name: '空气净化器', price: 1299, desc: '甲醛数显 五重过滤'},
    {name: '扫地机器人', price: 2999, desc: '激光导航 自动集尘'},
    {name: '挂烫机', price: 299, desc: '双核增压 干湿两用'},
    {name: '电风扇', price: 399, desc: '直流变频 7叶静音'},
    {name: '加湿器', price: 199, desc: 'UV杀菌 智能恒湿'}
  ],
  '个护电器': [
    {name: '电吹风', price: 299, desc: '负离子 折叠设计'},
    {name: '电动冲牙器', price: 399, desc: '4种喷嘴 脉冲水流'},
    {name: '按摩仪', price: 199, desc: '颈椎腰部多部位适用'},
    {name: '美容冰箱', price: 599, desc: '10L容量 恒温保鲜'},
    {name: '电子秤', price: 159, desc: '体脂检测 APP连接'},
    {name: '足浴盆', price: 399, desc: '全自动按摩 恒温加热'}
  ],
  '大家电': [
    {name: '双开门冰箱', price: 8999, desc: '650L 风冷无霜'},
    {name: '滚筒洗衣机', price: 4999, desc: '10kg 蒸汽除菌'},
    {name: '立式空调', price: 6999, desc: '3匹 新一级能效'},
    {name: '75寸电视', price: 9999, desc: '4K HDR 120Hz'},
    {name: '集成灶', price: 12999, desc: '蒸烤一体 5.2kW火力'},
    {name: '热泵干衣机', price: 5999, desc: '10kg 正反转'}
  ],
}